jj stderr fix#47
Conversation
hugoh
commented
Jul 2, 2026
- refactor: dedupe repo shell-complete, tui repo-set, table cell writers
- fix(jj): separate stdout/stderr in defaultRunJJ
cmd/repo.go: extract completeFirstArgWithRepos, shared by rename and group/ungroup commands. internal/tui: extract model.allRepoSet(), shared by initHistoryList and openSelHistoryPopup. internal/ui/table.go: merge writeHeader/writeRow into writeCells with an optional cell-style function. Found via cpd; no behavior change.
Combined buffer let stderr warnings during working-copy re-snapshot corrupt the JSON parsed from stdout, breaking Status() with "decode jj log output: invalid character" errors. Add regression test stubbing jj on PATH to confirm stderr no longer leaks into stdout.
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Go | Jul 2, 2026 2:47a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
+ Coverage 88.78% 88.86% +0.07%
==========================================
Files 34 34
Lines 3638 3636 -2
==========================================
+ Hits 3230 3231 +1
+ Misses 311 309 -2
+ Partials 97 96 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


